package com.battery.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * WS设备依赖对象 ws_prorely
 *
 * @author wslr
 * @date 2020-11-11
 */
@Table(name = "ws_prorely")
public class Prorely {


    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    /**
     * 机柜SN
     */
    private String sn;

    /**
     * IMEI
     */
    private String imei;

    /**
     * 机柜访问域名地址
     */
    private String service;

    /**
     * 机柜访问端口号
     */
    private Integer port;

    /**
     * 心跳设置值
     */
    private Integer heartbeat;

    /**
     * 电量设置
     */
    private Integer bps;

    /**
     * 机柜固件版本
     */
    private String softVer;

    /**
     * netty客户端ID
     */
    private String ctxId;


    /**
     * 正常租借是否判定线好坏 0 否 1 是
     */
    private Integer batLine;


    /**
     * 正常租借循环发送时间设置 单位为秒
     */
    private Integer normalBorrow;

    /**
     * 强弹租借(指定弹出租借)循环发送时间设置
     */
    private Integer appointBorrow;


    public Integer getNormalBorrow() {
        return normalBorrow;
    }

    public void setNormalBorrow(Integer normalBorrow) {
        this.normalBorrow = normalBorrow;
    }

    public Integer getAppointBorrow() {
        return appointBorrow;
    }

    public void setAppointBorrow(Integer appointBorrow) {
        this.appointBorrow = appointBorrow;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSn() {
        return sn;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getImei() {
        return imei;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getService() {
        return service;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getPort() {
        return port;
    }

    public void setHeartbeat(Integer heartbeat) {
        this.heartbeat = heartbeat;
    }

    public Integer getHeartbeat() {
        return heartbeat;
    }

    public void setBps(Integer bps) {
        this.bps = bps;
    }

    public Integer getBps() {
        return bps;
    }

    public void setSoftVer(String softVer) {
        this.softVer = softVer;
    }

    public String getSoftVer() {
        return softVer;
    }

    public void setCtxId(String ctxId) {
        this.ctxId = ctxId;
    }

    public String getCtxId() {
        return ctxId;
    }


    public Integer getBatLine() {
        return batLine;
    }

    public void setBatLine(Integer batLine) {
        this.batLine = batLine;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sn", getSn())
                .append("imei", getImei())
                .append("service", getService())
                .append("port", getPort())
                .append("heartbeat", getHeartbeat())
                .append("bps", getBps())
                .append("softVer", getSoftVer())
                .append("ctxId", getCtxId())
                .toString();
    }
}
